package com.itheima.api.client;

import com.itheima.api.client.fallback.AdminClientFallbackFactory;
import com.itheima.api.client.fallback.UserClientFallbackFactory;
import org.springframework.context.annotation.Bean;

public class FeignClientConfig {

    @Bean
    public AdminClientFallbackFactory adminClientFallbackFactory(){
        return  new AdminClientFallbackFactory();
    }


    @Bean
    public UserClientFallbackFactory userClientFallbackFactory(){
        return  new UserClientFallbackFactory();
    }
}
